package com.class05.advice;


import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;


public class LoggingAdvice {

    public void pre(){
        System.out.println("前置通知");
    }
    public void after(){
        System.out.println("后置通知");
    }
    public void afterReturning(int result){
        System.out.println("返回通知，结果是："+result);
    }
}
